//
//  ImageDownloader.h
//  tableViewLazyDemo
//
//  Created by kingboyrang on 2021/11/20.
//  Copyright © 2021 wulanzhou. All rights reserved.
//

//图片下载

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface ImageDownloader : NSObject

@property (nonatomic,copy) NSString *urlStr;
@property (nonatomic,copy) void (^completionHandler)(UIImage *__nullable image);

- (instancetype)initWithUrlStr:(NSString *)urlStr;

//下载
- (void)start;
//取消
- (void)cancel;

@end

NS_ASSUME_NONNULL_END
